/**
 * Generate time : 2011-05-17 11:10:02
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ce.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCEA3 table comment : 设备工作量记录
 */
public class ZMCEA3 extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdProductionUnitsId = " "; /* 生产单元ID */
	private String fdVariableId = " "; /* 变量ID */
	private String fdWorkload = " "; /* 工作量 */
	private String fdRealPeriod = " "; /* 实际工作周期(M) */
	private String fdRecordClock = " "; /* 记录时刻 */

	private String fdSumWorkLoad = " "; /* 工作总量 */
	private String fdTheoryPeriod = " "; /* 理论加工周期(M) */
	private String fdUnit = " "; /* 单位 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProductionUnitsId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("生产单元ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdVariableId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("变量ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdWorkload");
		eiColumn.setFieldLength(16);
		eiColumn.setDescName("工作量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRealPeriod");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("实际工作周期(M)");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRecordClock");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("记录时刻");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSumWorkLoad");
		eiColumn.setFieldLength(16);
		eiColumn.setDescName("工作总量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTheoryPeriod");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("理论加工周期(M)");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdUnit");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("单位");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCEA3() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdProductionUnitsId - 生产单元ID
	 * 
	 * @return the fdProductionUnitsId
	 */
	public String getFdProductionUnitsId() {
		return this.fdProductionUnitsId;
	}

	/**
	 * set the fdProductionUnitsId - 生产单元ID
	 */
	public void setFdProductionUnitsId(String fdProductionUnitsId) {
		this.fdProductionUnitsId = fdProductionUnitsId;
	}

	/**
	 * get the fdVariableId - 变量ID
	 * 
	 * @return the fdVariableId
	 */
	public String getFdVariableId() {
		return this.fdVariableId;
	}

	/**
	 * set the fdVariableId - 变量ID
	 */
	public void setFdVariableId(String fdVariableId) {
		this.fdVariableId = fdVariableId;
	}

	/**
	 * get the fdWorkload - 工作量
	 * 
	 * @return the fdWorkload
	 */
	public String getFdWorkload() {
		return this.fdWorkload;
	}

	/**
	 * set the fdWorkload - 工作量
	 */
	public void setFdWorkload(String fdWorkload) {
		this.fdWorkload = fdWorkload;
	}

	/**
	 * get the fdRealPeriod - 实际工作周期(M)
	 * 
	 * @return the fdRealPeriod
	 */
	public String getFdRealPeriod() {
		return this.fdRealPeriod;
	}

	/**
	 * set the fdRealPeriod - 实际工作周期(M)
	 */
	public void setFdRealPeriod(String fdRealPeriod) {
		this.fdRealPeriod = fdRealPeriod;
	}

	/**
	 * get the fdRecordClock - 记录时刻
	 * 
	 * @return the fdRecordClock
	 */
	public String getFdRecordClock() {
		return this.fdRecordClock;
	}

	/**
	 * set the fdRecordClock - 记录时刻
	 */
	public void setFdRecordClock(String fdRecordClock) {
		this.fdRecordClock = fdRecordClock;
	}

	/**
	 * get the fdSumWorkLoad - 工作总量
	 * 
	 * @return the fdSumWorkLoad
	 */
	public String getFdSumWorkLoad() {
		return this.fdSumWorkLoad;
	}

	/**
	 * set the fdWorkload - 工作总量
	 */
	public void setFdSumWorkLoad(String fdSumWorkLoad) {
		this.fdSumWorkLoad = fdSumWorkLoad;
	}

	/**
	 * get the fdTheoryPeriod - 理论加工周期(M)
	 * 
	 * @return the fdTheoryPeriod
	 */
	public String getFdTheoryPeriod() {
		return this.fdTheoryPeriod;
	}

	/**
	 * set the fdTheoryPeriod - 理论加工周期(M)
	 */
	public void setFdTheoryPeriod(String fdTheoryPeriod) {
		this.fdTheoryPeriod = fdTheoryPeriod;
	}

	/**
	 * get the fdUnit - 单位
	 * 
	 * @return the fdUnit
	 */
	public String getFdUnit() {
		return this.fdUnit;
	}

	/**
	 * set the fdUnit - 单位
	 */
	public void setFdUnit(String fdUnit) {
		this.fdUnit = fdUnit;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdProductionUnitsId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProductionUnitsId")), fdProductionUnitsId));
		setFdVariableId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVariableId")), fdVariableId));
		setFdWorkload(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkload")), fdWorkload));
		setFdRealPeriod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRealPeriod")), fdRealPeriod));
		setFdRecordClock(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecordClock")), fdRecordClock));

		setFdSumWorkLoad(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSumWorkLoad")), fdSumWorkLoad));
		setFdTheoryPeriod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTheoryPeriod")), fdTheoryPeriod));
		setFdUnit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUnit")), fdUnit));

	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdProductionUnitsId", StringUtils.toString(fdProductionUnitsId, eiMetadata.getMeta("fdProductionUnitsId")));
		map.put("fdVariableId", StringUtils.toString(fdVariableId, eiMetadata.getMeta("fdVariableId")));
		map.put("fdWorkload", StringUtils.toString(fdWorkload, eiMetadata.getMeta("fdWorkload")));
		map.put("fdRealPeriod", StringUtils.toString(fdRealPeriod, eiMetadata.getMeta("fdRealPeriod")));
		map.put("fdRecordClock", StringUtils.toString(fdRecordClock, eiMetadata.getMeta("fdRecordClock")));

		map.put("fdSumWorkLoad", StringUtils.toString(fdSumWorkLoad, eiMetadata.getMeta("fdSumWorkLoad")));
		map.put("fdTheoryPeriod", StringUtils.toString(fdTheoryPeriod, eiMetadata.getMeta("fdTheoryPeriod")));
		map.put("fdUnit", StringUtils.toString(fdUnit, eiMetadata.getMeta("fdUnit")));

		return map;

	}
}